package com.java1412.service.impl;

import com.java1412.entity.HouseType;
import com.java1412.mapper.HouseTypeMapper;
import com.java1412.service.HouseTypeService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author java1412
 * @since 2025-04-30 13:56
 */
@Service
@Transactional
public class HouseTypeServiceImpl implements HouseTypeService {
    @Resource
    private HouseTypeMapper houseTypeMapper;

    @Override
    @Transactional(propagation = Propagation.SUPPORTS)
    public List<HouseType> findAll() {
        return houseTypeMapper.findAll();
    }
}
